package com.yanqu.road.entity.log.chefduel;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;


@FieldTypeAnnotation(tableName = "t_c_chef_duel3_end_log",desc = "厨神对决-结算",autoSave = true, uploadCk = true, dataUpload = true, eventName = "cook_thrend", isCross = true)
public class LogChefDuel3End extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "阵营", dataAttribute = "belong_id")
    private int campId;
    @FieldTypeAnnotation(desc = "当前开宴次数", dataAttribute = "team_id")
    private int tableId;
    @FieldTypeAnnotation(desc = "结束类型: 1 参宴；2：满位结束；3：时间到结束", dataAttribute = "change_type")
    private int endType;
    @FieldTypeAnnotation(desc = "获得道具", dataAttribute = "item_get")
    private String getItem;
    @FieldTypeAnnotation(desc = "获得积分", dataAttribute = "after_score")
    private long score;

    public LogChefDuel3End(int activityId, long userId, int campId, int tableId, int endType, String getItem, long score) {
        this.activityId = activityId;
        this.userId = userId;
        this.campId = campId;
        this.tableId = tableId;
        this.endType = endType;
        this.getItem = getItem;
        this.score = score;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
